﻿using Ongoal.Quotation.Common;
using Ongoal.Quotation.Service.Common;
using Ongoal.Quotation.Service.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ongoal.Quotation.Service
{
    /// <summary>
    /// 用户接口
    /// </summary>
    
    public interface IOrganizeService : IServiceBase
    {
        /// <summary>
        /// 懒加载获取组织结构
        /// </summary>
        /// <param name="ParentId"></param>
        /// <returns></returns>
        object GetOrganizeByParentId(int ParentId, int?[]? state, string? keyword);

        /// <summary>
        /// 非懒加载获取树
        /// </summary>
        /// <returns></returns>
        object GetOrganizeTree();
        /// <summary>
        /// 添加组织结构
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        bool AddOrganizelist(Organize model);


        /// <summary>
        /// 修改组织结构
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        bool UpdateOrganizelist(Organize model);

        /// <summary>
        /// 删除组织结构
        /// </summary>
        /// <param name="modellist"></param>
        /// <returns></returns>
        bool DeleteOrganizelist(List<int> listid);
    }
}
